package com.tuanzi.loan.business.service.product.product;

import com.tuanzi.loan.business.entity.product.product.LoanProductConsumeRecord;
import com.tuanzi.loan.core.service.BaseService;
import com.tuanzi.loan.core.service.CommonService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.product.product.LoanProductConsumeSearchRequest;
import com.tuanzi.loan.vo.response.product.product.LoanProductConsumeSearchResponse;
import org.springframework.data.domain.Page;

import java.util.List;

public interface LoanProductConsumeRecordService extends CommonService<LoanProductConsumeRecord,Long> {
    Page<LoanProductConsumeSearchResponse> list(PageSearcher<LoanProductConsumeSearchRequest> pageSearcher);
    Double countConsumeMoneyByProdid(Long prdid);
    List<LoanProductConsumeRecord> findAllByProid(Long prdid);
}
